package com.groupbuying.settleproducer.service;

import com.groupbuying.settleproducer.domain.SettleUshopYSSplitRequestReceiptDO;
import com.groupbuying.settleproducer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/5/10 16:46
 * @Des 银盛分账查询接口
 */
public interface SettleUshopYSSplitRequestReceiptService {
    /**
     * @param id
     * @return com.groupbuying.settleconsumer.domain.YSSplitRequestReceipt
     * @des 根据id查询一条记录
     */
    SettleUshopYSSplitRequestReceiptDO get(String id);
    /**
     * @param map
     * @return List
     * @des 查询列表
     */
    List<SettleUshopYSSplitRequestReceiptDO> list(Map<String,Object> map);
    /**
     * @param map
     * @return int
     * @des 查询总记录
     */
    int count(Map<String,Object> map);
    /**
     * @param splitRequestReceipt
     * @return int
     * @des 保存一条记录
     */
    int save(SettleUshopYSSplitRequestReceiptDO splitRequestReceipt);
    /**
     * @param splitRequestReceipt
     * @return int
     * @des 更新一条记录
     */
    int update(SettleUshopYSSplitRequestReceiptDO splitRequestReceipt);
    /**
     * @param id
     * @return int
     * @des 删除一条记录
     */
    int remove(String id);
    /**
     * @param ids
     * @return int
     * @des 删除多条记录
     */
    int batchRemove(String[] ids);
    /**
     * @param map
     * @return  ApiResult
     * @des 分账查询
     */
    ApiResult createRequestReceipt(Map<String, Object> map);
}
